home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / clipmarks-3.5.0-fx.xpi / chrome / clipmarks.jar / content / orange-lines.xul < prev    next >
Extensible Markup Language  |  2007-11-16  |  1KB  |  34 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  4.  
  5. <dialog id="Clipmarks_SaveOverlimitDialog" title="Orange Lines"
  6.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.         buttons="accept,cancel" buttonlabelaccept="Disable them now" buttonlabelcancel="cancel"
  8.         ondialogaccept="return accept_click();"
  9.         ondialogcancel="return cancel_click();"
  10.         onload="window_load();">
  11.  
  12. <script>
  13.   function window_load() {
  14.   document.documentElement.getButton("accept").focus();
  15.   document.documentElement.getButton("cancel").setAttribute('label', (window.opener.Clipmarks_Preferences.get('extensions.clipmarks.use-borders', 1) == 1 ? 'Disable orange lines' : 'Enable orange lines'));
  16.   document.documentElement.getButton("accept").setAttribute('label', 'OK');
  17.   }
  18.  
  19.   function accept_click() {
  20.   return true;
  21.   }
  22.  
  23.   function cancel_click() {
  24.   //if (window.opener.Clipmarks_Preferences.get('extensions.clipmarks.use-borders', 1) == 1) {
  25.   window.opener.Clipmarks_EnableOrangeLines();
  26.   //}
  27.   return true;
  28.   }
  29. </script>
  30.  
  31. <image src="http://content.clipmarks.com/images/orange_lines_dialog2.png" width="297" height="186" style="margin-bottom:4px;" />
  32.  
  33. </dialog>
  34.